package com.meituan.sdk.model.tuangouNg.smar.shopInfoUpload;

import com.meituan.sdk.annotations.ApiMeta;
import com.google.gson.reflect.TypeToken;
import javax.validation.constraints.NotBlank;
import java.lang.reflect.Type;
import com.meituan.sdk.internal.utils.JsonUtil;
import com.google.gson.annotations.SerializedName;
import javax.validation.constraints.NotNull;
import com.meituan.sdk.MeituanResponse;
import com.meituan.sdk.MeituanRequest;

/**
* 上传门店信息【必接】
* This file was automatically generated.
*/
@ApiMeta(
    path = "/tuangou/ng/smar/shop/info/upload",
    businessId = 1,
    apiVersion = "10008",
    apiName = "shop_info_upload",
    needAuth = true
)
public class ShopInfoUploadRequest implements MeituanRequest<ShopInfoUploadResponse> {
    /**
    * <p data-diff-id="ct-diff-id-b6bc8ecf-855f-4151-a3f5-07a75bbf7ba7">门店信息</p>
    */
    @NotNull(message = "poiBaseInfo不能为空")
    @SerializedName("poiBaseInfo")
    private PPoiBaseInfo poiBaseInfo;
    /**
    * <p data-diff-id="ct-diff-id-60ec23b4-6ef6-4a46-b4a5-eb3a63713483">扩展预留字段</p>
    */
    @SerializedName("reqExt")
    private Map reqExt;
    /**
    * <p data-diff-id="ct-diff-id-cdd36c6b-c096-4348-b93b-dc20ef65ed71">三方门店id</p>
    */
    @NotBlank(message = "vendorShopId不能为空")
    @SerializedName("vendorShopId")
    private String vendorShopId;

    public PPoiBaseInfo getPoiBaseInfo() {
        return poiBaseInfo;
    }
    public void setPoiBaseInfo(PPoiBaseInfo poiBaseInfo) {
        this.poiBaseInfo = poiBaseInfo;
    }
    public Map getReqExt() {
        return reqExt;
    }
    public void setReqExt(Map reqExt) {
        this.reqExt = reqExt;
    }
    public String getVendorShopId() {
        return vendorShopId;
    }
    public void setVendorShopId(String vendorShopId) {
        this.vendorShopId = vendorShopId;
    }


    @Override
    public MeituanResponse<ShopInfoUploadResponse> deserializeResponse(String response) {
        Type type = new TypeToken<MeituanResponse<ShopInfoUploadResponse>>(){}.getType();
        return JsonUtil.fromJson(response, type);
    }
    @Override
    public String serializeToJson() {
        return JsonUtil.toJson(this);
    }


    @Override
    public String toString() {
        return "ShopInfoUploadRequest{" + "poiBaseInfo=" + poiBaseInfo + "," + "reqExt=" + reqExt + "," + "vendorShopId=" + vendorShopId + "}";
    }
}
